public class Jiazi60{
    public static void main(String[] args) {
        int count=0;
    String heavenlyStems[] = { "甲" , "乙" , "丙" , "丁" , "戊" , "己" , "庚" , "辛" , "壬" , "癸" };
    String earthlyBranches[] = { "子" , "丑" , "寅" , "卯" , "辰" , "巳" , "午" , "未" , "申" , "酉" , "戌" , "亥" };
    for(int i =0;i<heavenlyStems.length;i++){
        for(int j=0;j<earthlyBranches.length;j++){
            count++;
            
            if(count%12==0){
                System.out.print(heavenlyStems[i]+earthlyBranches[j]);
                System.out.println("\n");
            }
            else{
                System.out.print(heavenlyStems[i]+earthlyBranches[j]+",");
            }
        }
    }
    }
}